package com.itheima.d07_singleton;

public class GC {
    private GC() {

    }


    private static GC gc;

    public static GC getInstance() {
        if (gc == null)
            gc = new GC();
              return gc;
    }

}
